<template/>

<script>
  import router from '@/router'

  export default {
    name: 'Root',
    created() {
      let token = localStorage.getItem('token')
      if (token) {
        router.replace('/map')
      } else {
        router.replace('/login')
      }
    }
  }
</script>
<style></style>
